<?php

$page->title = ucfirst($page->collection) . ' Collection';

?>

<hgroup class="onWallpaper">
    <h1><?= $page->title ?></h1>
    <p>Project images that match the ‘<?= $page->collection ?>’ tag.</p>
</hgroup>

<ul class="block-grid three-up album">
    <?php foreach( $page->gallery as $key => $project ) : ?>
    <li>
        <figure>
            <a href="<?= url( uri::back(2) . '/' . $project->getId()) ?>">
                <img src="<?= $project->getThumb() ?>">
            </a>
            <figcaption>
                <p><?= $project->getTitle() ?></p>
            </figcaption>
        </figure>
    </li>
    <?php endforeach ?>
</ul>
